package com.hy.controller;

import com.hy.service.CarryOverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qiuhongyu
 * @date 2020/9/7 15:31
 */
@RestController
public class ConsumerController {
    @Autowired
    private CarryOverService carryOverService;
    @GetMapping("/add")
     public void addMoney(Integer id, Long money) {
        carryOverService.addMoney(id, money);
    }

}
